import Vue from 'vue'
import VueRouter from 'vue-router'
import MyHome from '../views/MyHome'
import MyMovie from '../views/MyMovie'
import MyAbout from '../views/MyAbout'

Vue.use(VueRouter)

const routes = [
  {
    path: "/home",
    component: MyHome
  },
  {
    path: "/movie",
    component: MyMovie
  },
  {
    path: "/about",
    component: MyAbout
  },
  {
    path: "/Goods/:goodsname",
    component: () => import('../components/MyGoods.vue')
  },
  {
    path: "/Goods",
    component: () => import('../components/MyGoods.vue')
  }
]

const router = new VueRouter({
  routes
})
export default router
